#define  _CRT_SECURE_NO_WARNINGS 1
#include"shared_ptr.h"

int main()
{
	my::shared_ptr<int> sp(new int(1));
	my::shared_ptr<int> sp2(sp);
	my::shared_ptr<int> sp3(new int(2));
	sp2 = sp;
	sp2 = sp3;
	cout << *sp << endl;
	return 0;
}